﻿using System;
using System.Collections.Generic;
using System.Web.Mvc;
using Huirui.Cavan.Domain.MainBoundedContext.SearchModule;
using Huirui.Cavan.Domain.MainBoundedContext.SystemModule;
using Huirui.Cavan.Presentation.Seedwork;

namespace Huirui.Cavan.Presentation.ViewModel.SystemModule
{
    public class CorporationViewModel : EntityModel<Corporation, string, CorporationSearch>, ICorporationViewModel
    {
        public List<SelectListItem> IndustryList { get; set; }
        //public List<SelectListItem> AreaList { get; set; }
        public string CityID { get; set; }
        public string ProvinceID { get; set; }

        public CorporationViewModel()
        {
            this.IndustryList = new List<SelectListItem>();
            //this.AreaList = new List<SelectListItem>();
        }
    }

    public class CorporationJson
    {
        public string Code { get; set; }
        public string Name { get; set; }
        public int Industry { get; set; }
        public string EnglishName { get; set; }
        public int MaxUser { get; set; }
        public string Contact { get; set; }
        public string Website { get; set; }
        public string Mobile { get; set; }
        public string Telephone { get; set; }
        public string Fax { get; set; }
        public string Email { get; set; }
        public string AreaCode { get; set; }
        public string Address { get; set; }
        public string AddressEnglish { get; set; }
        public string DeliveryAddress2 { get; set; }
        public string DeliveryAddress3 { get; set; }
        public string DeliveryAddress1 { get; set; }
        public string TaxIdentificationNumber { get; set; }
        public string Bank { get; set; }
        public string BankAccount { get; set; }
        public DateTime CreateDate { get; set; }
        public DateTime ModifyDate { get; set; }

    }

    public class CorporationJsonViewModel : JsonViewModel<CorporationJson>
    {
    }

}
